﻿using System.ComponentModel;
using System.Xml;
using System.Xml.Serialization;

namespace Bpmn.Xml;

/// <remarks/>
[Serializable]
[XmlType(Namespace = "http://www.omg.org/spec/BPMN/20100524/MODEL", TypeName = "tEventBasedGateway")]
[XmlRoot("eventBasedGateway", Namespace = "http://www.omg.org/spec/BPMN/20100524/MODEL", IsNullable = false)]
public partial class EventBasedGateway : Gateway
{
    /// <remarks/>
    [XmlAttribute("instantiate")]
    [DefaultValue(false)]
    public bool Instantiate { get; set; } = false;

    /// <remarks/>
    [XmlAttribute("eventGatewayType")]
    [DefaultValue(EventBasedGatewayType.Exclusive)]
    public EventBasedGatewayType EventGatewayType { get; set; } = EventBasedGatewayType.Exclusive;
}
